package com.ruicar.afs.cloud.apply.admin.manage.feign;

import com.ruicar.afs.cloud.apply.admin.manage.vo.ArchiveUserInfoVo;
import com.ruicar.afs.cloud.apply.admin.manage.vo.UserAuditVo;
import com.ruicar.afs.cloud.common.core.util.IResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.Map;

/**
 * @author Ice
 * @date 2020/9/8 14:13
 */
@FeignClient(name = "channel", url = "${com.greatwall.services.channel-service.url}")
public interface ApplyAdminUseChannelFeign {

    @PostMapping(value = "/applyUser/addApplyUser")
    @ApiOperation("进件添加用户申请")
    IResponse addApplyUser(@RequestBody UserAuditVo condition, @RequestHeader Map<String, String> headers);

    /**
     * 进件添加用户申请同步归档系统
     * @param condition
     * @param headers
     * @return
     */
    @PostMapping(value = "/applyUser/sendApplyUser")
    @ApiOperation("进件添加用户申请同步归档系统")
    IResponse sendApplyUser(@RequestBody ArchiveUserInfoVo condition, @RequestHeader Map<String, String> headers);
}
